import logging,time
class Tooles():
    def rizhi(self):
        rizhi = logging.basicConfig(filename=time.strftime('%Y%m%d%H%M%S')+'jiuxian.log',
                                    level=logging.INFO,
                                    filemode='a+',
                                    format='%(filename)s-%(asctime)s-%(levelname)s-%(message)s')
        print(rizhi)